//
//  ITTImageWallItem.m
//  AiTuPianPad
//
//  Created by guo hua on 11-9-21.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import "ITTImageWallItem.h"

@implementation ITTImageWallItem
@synthesize indexOnWall,identifier = _identifier;
- (id)init{
    self = [super init];
    if (self) {
        self.indexOnWall = -1;
        self.userInteractionEnabled = YES;
    }
    return self;
}

-(id)initWithUrl:(NSString *)url reusableIdentifier:(NSString *)identifier{
    self = [self init];
    if (self) {
        self.imageUrl = url;
        self.identifier = identifier;
        [self enableImageBtn];
    }
    return self;
}

-(void)setDefaultImage:(UIImage *)defaultImage{
    UIImage *image = defaultImage;
    if (!image) {
        image = [UIImage imageNamed:@"loading"];
    }
    [super setDefaultImage:image];
}

-(void)dealloc{
    [_identifier release];
    [super dealloc];
}
@end
